<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>ECharts</title>
    <!-- 引入 echarts.js -->
    <script src="http://10.5.21.118/libjs/echarts.min.js"></script>
    <script src="http://10.5.21.118/libjs/jquery-1.11.1.min.js"></script>
    <script src="http://10.5.21.118/libjs/echarts-wordcloud.min.js"></script>
    <style>
     *{
        margin: 0;
        padding: 0;
    }
    div{
        width:100%;
        height: 100%;
        position: absolute;
    }
	</style>

</head>
<body>
    <!-- 为ECharts准备一个具备大小（宽高）的Dom -->
    <div id="main"></div>
    <script type="text/javascript">
        var myChart = echarts.init(document.getElementById('main'));
		
	$.get('word.json').done(function (data) {
		// 填入数据
		alert(data.data);
		alert(data.data[0].name);
		alert(data.data[0].value);
		alert(data.data[1].name);
		alert(data.data[1].value);
		alert(data.data);
		
	});                    
			
    </script>
</body>
</html>
